// import React,{ Component, Fragment } from 'react'
import React,{ Component } from 'react'
// import { Xiao } from './views'
// import { TodoList } from './views'
import AppRouter from './routes'
// import {admainRoute} from "./routes"
// import {Route,Redirect,Switch} from "react-router-dom"
import { Provider } from 'react-redux'
import store from './store'

export default class App extends Component {
  render() {
    return (
      <Provider store={store}>
        <AppRouter></AppRouter>
      </Provider>
      // <Provider store={store}>
      //   <TodoList></TodoList>
      //   ——————————————————————————————————————————————————————————————————————
      //   {/* <Xiao></Xiao> */}
      // </Provider>
      // <Fragment>
      //   <TodoList></TodoList>
      //   ——————————————————————————————————————————————————————————————————————
      //   <Xiao></Xiao>
      // </Fragment>
      // <div>
      //   Hello JSPang
      // </div>
      // <Switch>
      //   {
      //     admainRoute.map(route=>{
      //       return <Route path={route.pathname} component={route.component} exact={route.exact}/>
      //     })
      //   }
      //   <Redirect to={admainRoute[0].pathname} from="/admin" exact/>
      //   <Redirect to="/404" />
      // </Switch> 
    )
  }
}
